<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <title>智慧景区</title>
  <meta name="format-detection" content="telephone=no" />
  <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="HandheldFriendly" content="true">
  <link rel="stylesheet" type="text/css" href="/assets/css/style.css">
  <script src="/assets/js/qrcode.min.js"></script>
</head>

<body style="height: 100vh;">
  <div style="height: 100%; display: flex; align-items: center; justify-content: center;">
    <div>
      <div style="text-align: center; font-size: 1rem; padding-bottom: 20px;">请持此二维码到验票口验票进入景区</div>
      <div id="qrcode"></div>
    </div>
    <script type="text/javascript">
      function getQueryVariable(variable) {
        var query = window.location.search.substring(1);
        var vars = query.split("&");
        for (var i = 0; i < vars.length; i++) {
          var pair = vars[i].split("=");
          if (pair[0] == variable) { return pair[1]; }
        }
        return (false);
      }
      new QRCode(document.getElementById("qrcode"), getQueryVariable('id'));
    </script>
  </div>
</body>

</html>
